package com.shine.app.bean;

import java.util.ArrayList;
import java.util.List;

import com.google.gson.annotations.SerializedName;

public class ReviewBean extends BaseBean {

	private static final long serialVersionUID = 1L;
	@SerializedName("Id")
	private int id;
	@SerializedName("Timestamp")
	private String timestamp;
	@SerializedName("Rating")
	private double rating;
	@SerializedName("Description")
	private String description;
	@SerializedName("Source")
	private String source;
	@SerializedName("ReviewerName")
	private String reviewerName;
	@SerializedName("ExternalSourceId")
	private String externalSourceId;

	public String getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(String timestamp) {
		this.timestamp = timestamp;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public String getReviewerName() {
		return reviewerName;
	}

	public void setReviewerName(String reviewerName) {
		this.reviewerName = reviewerName;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public double getRating() {
		return rating;
	}

	public void setRating(double rating) {
		this.rating = rating;
	}

	public String getExternalSourceId() {
		return externalSourceId;
	}

	public void setExternalSourceId(String externalSourceId) {
		this.externalSourceId = externalSourceId;
	}

	public static List<ReviewBean> parse(ReviewBean[] reviews) {
		List<ReviewBean> list = new ArrayList<ReviewBean>();
		if (reviews != null && reviews.length > 0) {
			for (int i = 0, length = reviews.length; i < length; i++) {
				list.add(reviews[i]);
			}
		}
		return list;
	}

}
